package com.hotel.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.hotel.bean.Hotelinfor;
import com.hotel.dao.HotelinDao;
import com.hotel.dao.impl.HotellinDaoImpl;
import com.hotel.service.HotelinService;

public class HotelinServiceImpl implements HotelinService{
//杨路瑶
	private HotelinDao hd = new HotellinDaoImpl();
	@Override
	public List<Hotelinfor> queryByName(String hname) throws SQLException {
		return hd.queryByName(hname);
	}

	@Override
	public List<Hotelinfor> queryByArea(String harea) throws SQLException {
		return hd.queryByArea(harea);
	}

	@Override
	public Hotelinfor qureyHotelById(int hid) throws SQLException {
		return hd.queryByid(hid);
	}



}
